<?php


namespace backend\modules\tool\models;


class Queue
{
    public static $create_sql="CREATE TABLE if NOT EXISTS `data_source_queue` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `push_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '任务推入的时间',
  `data` varchar(2550) NOT NULL COMMENT '数据',
  `channel` varchar(50) DEFAULT NULL COMMENT '通道',
  PRIMARY KEY (`id`),
  KEY `channel` (`channel`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
}